﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ExceptDev
{
    public enum AuthCode
    {
        [Description("失败")]
        Error = -1,
        /// <summary>
        /// 请求参数为空
        /// </summary>
        [Description("请求参数为空")]
        Null = -10,
        /// <summary>
        /// 参数解析失败
        /// </summary>
        [Description("参数解析失败")]
        ParseErr = -2,
        /// <summary>
        /// 参数校验失败
        /// </summary>
        [Description("参数校验失败")]
        ParamCheckErr = -2,
        /// <summary>
        /// 密码校验失败
        /// </summary>
        [Description("密码校验失败")]
        CheckPwdErr = -2,
        /// <summary>
        /// 管理密码校验失败
        /// </summary>
        [Description("")]
        CheckAdmPwdErr = -3,
        /// <summary>
        /// 访问过于频繁
        /// </summary>
        [Description("访问过于频繁")]
        TooFrequently = -4,
        /// <summary>
        /// 账号被锁定
        /// </summary>
        [Description("账号被锁定")]
        Locked = -5,
        /// <summary>
        /// 已存在
        /// </summary>
        [Description("已存在")]
        IsExists = -6,
        /// <summary>
        /// 不存在
        /// </summary>
        [Description("不存在")]
        NotExists = -7,
        /// <summary>
        /// 产品未获授权
        /// </summary>
        [Description("产品未获授权")]
        ProductAuthority = -8,
        /// <summary>
        /// 过期
        /// </summary>
        [Description("过期")]
        Expired = -12,
        /// <summary>
        /// 未知异常
        /// </summary>
        [Description("未知异常")]
        Unknown = -99,
        /// <summary>
        /// 成功
        /// </summary>
        [Description("成功")]
        Success = 0
    }
}
